package com.example.sls.service.impl.social;

import com.example.sls.pojo.social.TGroups;
import com.example.sls.dao.social.TGroupsDao;
import com.example.sls.service.intserfaces.social.TGroupsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 群组表(TGroups)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:55:05
 */
@Service
public class TGroupsServiceImpl implements TGroupsService {
  @Autowired
  TGroupsDao tGroupsDao;

  @Override
  public TGroups queryById(Integer id) {
    return tGroupsDao.queryById(id);
  }

  @Override
  public int deleteById(Integer id) {
    return tGroupsDao.deleteById(id);
  }

  @Override
  public int update(TGroups tGroups) {
    return tGroupsDao.update(tGroups);
  }

  @Override
  public int insert(TGroups tGroups) {
    return tGroupsDao.insert(tGroups);
  }

  @Override
  public long count() {
    return tGroupsDao.count();
  }

  @Override
  public List<TGroups> queryAllByLimit(TGroups tGroups, Integer pageSize, Integer offset) {
    return tGroupsDao.queryAllByLimit(tGroups, pageSize, offset);
  }
}
